package com.aos.erp.schools.model.common.vo;

import com.aos.erp.schools.model.sys.vo.TreeNode;

/**
 * @program: erp
 * @description:
 * @author: tanzhiyu
 * @create: 2018-11-06 09:55
 **/
public class RegionTree extends TreeNode {
    String icon;
    String name;
    String href;
    boolean spread = false;

    public RegionTree() {
    }

    public RegionTree(Long id, String name, Long parentId) {
        this.id = id;
        this.parentId = parentId;
        this.name = name;
    }

    public RegionTree(Long id, String name, RegionTree parent) {
        this.id = id;
        this.parentId = parent.getId();
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public boolean isSpread() {
        return spread;
    }

    public void setSpread(boolean spread) {
        this.spread = spread;
    }

}
